#ifndef __GD32E23x_HAL_POWER_LED_H__
#define __GD32E23x_HAL_POWER_LED_H__

#define BOOT0_SYS_LED			0

#if BOOT0_SYS_LED
	#define LED_POWER_CORE      RCC_AHBPeriph_GPIOF
	#define LED_POWER_BASE      GPIOF
	#define LED_POWER_PIN       GPIO_Pin_8
#else
	#define LED_POWER_CORE      RCC_AHBPeriph_GPIOA
	#define LED_POWER_BASE      GPIOA
	#define LED_POWER_PIN       GPIO_Pin_1
#endif
typedef struct {
    void (*init)(void);                 //初始化
    void (*power_output)(int output);   //设置电源灯输出 
    void (*led_toggle)(void);           //反转电源灯
    void (*uninit)(void);               //注销
}power_led_t;

extern const power_led_t g_power_led_;

#endif//__GD32E23x_HAL_POWER_LED_H__
